<!--#include file="Config.asp" -->
<!--#include file="HeadTop.asp"-->

<script language="javascript">
function CheckForm()
{
if(!checkLength("ProjectBeginDate" , "开始时间" , 1 , 20))
return false;
if(!checkLength("ProjectEndDate" , "结束时间" , 0 , 20))
return false;
if(!checkLength("ProjectAgencies" , "培训机构" , 1 , 100))
return false;
if(!checkLength("ProjectAddr" , "培训地点" , 0 , 100))
return false;
if(!checkLength("ProjectCourses" , "培训课程" , 1 , 100))
return false;
if(!checkLength("ProjectCertificates" , "获得证书" , 0 , 100))
return false;
if(!checkLength("ProjectNote" , "详细描述" , 0 , 500))
return false;
return true;
}
</script>
<%
ProjectID=trim(Request("ProjectID"))
Action=trim(Request("Action"))
If Request.Form <> "" and Action="ModSave" Then
sql="select * from ProjectTbl where ProjectId="&ProjectID
rs.open sql,conn,1,3
rs("ProjectName")=trim(Request("ProjectName"))
rs("ProjectBeginDate")=trim(Request("ProjectBeginDate"))
rs("ProjectEndDate")=trim(Request("ProjectEndDate"))
rs("ProjectDuty")=trim(Request("ProjectDuty"))
rs("ProjectInfo")=trim(Request("ProjectInfo"))
rs("PerID")=int(session("AnyPIM_userID"))
rs.Update
rs.close
End If

SQL="select * from ProjectTbl where PerId = "& session("AnyPIM_userID") &" and ProjectId="&ProjectID&" order by ProjectId asc"
Rs.Open SQL,Conn,1,1
ProjectID=int(rs("ProjectID"))
ProjectName=trim(rs("ProjectName"))
ProjectBeginDate=trim(rs("ProjectBeginDate"))
ProjectEndDate=trim(rs("ProjectEndDate"))
ProjectInfo=trim(rs("ProjectInfo"))
ProjectDuty=trim(rs("ProjectDuty"))
rs.close

%>
<!-- 项目经验 -->
<TABLE class="table table-condensed">
<tr>
<td><a href="Project_Add.asp"><img src="img/some_Add.png" border="0" alt=""><strong>【添加项目经验】</strong></a></td>
</tr>
</table>

<TABLE class="table table-condensed">
<form id="PerForm" name="PerForm" method="post" action="Project_Edit.asp?ProjectID=<%=ProjectID%>" onsubmit="return CheckForm();">
<!-- 项目名称 -->
<tr>
<td >项目名称及时间：<input type="hidden" name="Action" value='ModSave'></td>
</tr>
<tr>
<td bgcolor='#f6f6f6'>
<input name="ProjectName" type="text" value='<%=ProjectName%>' size="50"  />
从
<input name="ProjectBeginDate" type="text" value='<%=ProjectBeginDate%>' class="Wdate" onClick="WdatePicker()" size="16"  />
到
<input name="ProjectEndDate" type="text" value='<%=ProjectEndDate%>' size="16" class="Wdate" onClick="WdatePicker()" />
(留空表示至今)</td>
</tr>

<!-- 项目内容 -->
<tr>
<td>项目内容：</td>
</tr>
<tr>
<td ><textarea name="ProjectInfo" cols="50" rows="10" style="display:none"><%=ProjectInfo%></TEXTAREA>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=ProjectInfo&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="200"></IFRAME>
</td>
</tr>
<!-- 个人职责及成绩 -->
<tr>
<td>个人职责及成绩：</td>
</tr>
<tr>
<td >
<textarea name="ProjectDuty" cols="50" rows="10" style="display:none"><%=ProjectDuty%></TEXTAREA>
<IFRAME ID="eWebEditor1" src="_Editor/ewebeditor.asp?id=ProjectDuty&style=s_exampleremote" frameborder="0" scrolling="no" width="100%" height="200"></IFRAME>

</td>
</tr>
<tr>
<td ><input type="submit" name="Submit" value="Save 保存修改" />
<input type="reset" name="Submit" value="全部重写" />
</td>
</tr>
</form>
</table>

<%Tips="Project"%>
<!-- #include file="WorkTips.asp" -->

<!-- #include file="foot.asp" -->
